package com.example.myapplication

import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.activity.ComponentActivity
import android.widget.ImageView

class MyActivity  : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.mainlayout)
        val textView = findViewById<TextView>(R.id.textView)
        val button = findViewById<Button>(R.id.button)
        val imageView=findViewById<ImageView>(R.id.imageView)
        textView.text=getString(R.string.textView)
        button.setOnClickListener {
            textView.text = getString(R.string.click_me)
        }
    }
}